import React from 'react';
class C1 extends React.Component {
  shouldComponentUpdate(nextProps, nextState) {
    // nextProps,nextState 新的属性  新的状态
    if (nextProps.t == this.props.t) return false
    return true
  }
  render() {
    console.log("C1 render");
    return <div className=''>
      <h2>child1 {this.props.t}</h2>
    </div>;
  }
}
export default C1